package com.xuecheng.teaching.agent;

import com.xuecheng.api.system.model.dto.CourseCategoryDTO;
import com.xuecheng.common.constant.XcFeignServiceNameList;
import com.xuecheng.common.domain.response.RestResponse;
import com.xuecheng.teaching.agent.hystrix.SystemApiAgentFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Created on 2021/04/05/19:43 周一
 *
 * @author Lantin
 */

@FeignClient(value = XcFeignServiceNameList.XC_SYSTEM_SERVICE, fallbackFactory = SystemApiAgentFallbackFactory.class)
public interface SystemApiAgent {


    @GetMapping("system/l/course-category/{id}")
    RestResponse<CourseCategoryDTO> getCourseCategoryById(@PathVariable String id);

}
